package com.itheima.itheima_health.service.Impl;

import com.itheima.itheima_health.mapper.CheckRecordMapper;

import com.itheima.itheima_health.pojo.Order;
import com.itheima.itheima_health.service.CheckRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;

@Service
@Transactional
public class CheckRecordServiceImpl implements CheckRecordService {
    @Autowired
    private CheckRecordMapper checkRecordMapper;

    @Override
    public List<Order> findByMemberId(Integer memberId) {
        return checkRecordMapper.findByMemberId(memberId);
    }
}